I=-I ./include -I /usr/local/physics/CLHEP/include
L=-L/usr/local/lib/ -lCLHEP-Random-2.1.0.1

F=-pthread -std=c++0x

all: main InlineStream PeakReference
	g++ -o bin/corrfpgatest build/*.o $L $F

clean:
	rm -f build/*
	
main:
	g++ -c -o build/main.o main.cpp $I $F
	
InlineStream:
	g++ -c -o build/InlineStream.o src/InlineStream.cpp $I $F
	
PeakReference:
	g++ -c -o build/PeakReference.o src/PeakReference.cpp $I $F

standAlone:
	g++ -c -o standAlone.o standAlone.cpp $I $F
	g++ -o standAlone standAlone.o build/InlineStream.o build/PeakReference.o $L
